package su.storage.service;
import java.util.List;
import java.util.Map;

import net.kuakao.core.dto.PagerDTO;
import su.storage.entity.StorageMaterial;
import su.storage.entity.StorageProduct;


public interface StorageService {
	//============产品
	/**
	 * 取所有仓库产品的出入库记录(分页显示)
	 * @param s
	 * @return
	 */
	public List<Map<String,String>> getStorageProductsByPage(PagerDTO s);
	
	/**
	 * 查询单个 仓库产品的出入库记录
	 * @param id
	 * @return
	 */
	public StorageProduct getStorageProductById(int id);
	
	/**
	 * 保存
	 * @param o
	 * @throws Exception
	 */
	public void saveStorageProduct(StorageProduct o)throws Exception;
	
	/**
	 * 删除
	 * @param id
	 * @throws Exception
	 */
	public void removeStorageProduct(int id)throws Exception;
	
	//==================原料
	
	/**
	 * 取所有仓库原料的出入库记录(分页显示)
	 * @param s
	 * @return
	 */
	public List<Map<String,String>> getStorageMaterialsByPage(PagerDTO s);
	
	/**
	 * 查询单个原料出入仓库记录对象
	 * @param id
	 * @return 原料出入仓库记录
	 * @throws Exception
	 */
	public StorageMaterial getStorageMaterialById(int id);
	
	
	/**
	 * 保存或更新原料出入仓库记录
	 * @param o
	 * @throws Exception
	 */
	public void saveStorageMaterial(StorageMaterial o) throws Exception;
	
	/**
	 * 删除
	 * @param id
	 * @throws Exception
	 */
	public void removeStorageMaterial(int id)throws Exception;
	
}
